package entities;

import java.io.Serializable;

import javax.persistence.Embeddable;

@Embeddable
public class IdENVT implements Serializable {
	private static final long serialVersionUID = 1L;

    private Long nroEnvt;
    private Long idCentroDist;
	
	public IdENVT() {
		super();
	}


	public IdENVT(Long nroEnvt, Long idCentroDist) {
		super();
		this.nroEnvt = nroEnvt;
		this.idCentroDist = idCentroDist;
	}


	public Long getNroEnvt() {
		return nroEnvt;
	}


	public void setNroEnvt(Long nroEnvt) {
		this.nroEnvt = nroEnvt;
	}


	public Long getIdCentroDist() {
		return idCentroDist;
	}


	public void setIdCentroDist(Long idCentroDist) {
		this.idCentroDist = idCentroDist;
	}


	public int hashCode() {
		return (int) Integer.parseInt((Long.toString(idCentroDist)+Long.toString(nroEnvt)));
	}


	
	public boolean equals(IdENVT id){
		if ((this.idCentroDist == id.idCentroDist)&&(this.nroEnvt == id.nroEnvt))
				return true;
		return false;
	}
	
}
